﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _1._12._2015_College.Data.Models
{
    public class Rating
    {
        [Key]
        public int RatingId { get; set; }
        [Required]
        public string Text { get; set; }
        [Required]
        public decimal NumRating { get; set; }

        public int CollegeId { get; set; }
        [ForeignKey("CollegeId")]
        public virtual College  College { get; set; }
    }
}
